Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing deprecated 'warn' function with 'warning' #3984

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

bskjois
Copy link
Contributor

@bskjois bskjois commented Aug 29, 2024

The warn() is deprecated in all the supported versions of python and is now removed in python3.13.

Hence we should be using warning() which is functionally identical to warn().

Referrence:
https://docs.python.org/3.12/library/logging.html#logging.Logger.warning https://docs.python.org/3.13/whatsnew/3.13.html#logging

@luckyh
Copy link
Contributor

luckyh commented Sep 2, 2024

Hi @bskjois , thank you for introducing this enhancement!

Before we are going to merge the PR, would you mind to fix the style issues caught by the static checks? thanks in advance!

Signed-off-by: Kowshik Jois B S <[email protected]>

The warn() is deprecated in all the supported versions of python and is now removed in python3.13.

Hence we should be using warning() which is functionally identical to warn().

Referrence:
https://docs.python.org/3.12/library/logging.html#logging.Logger.warning https://docs.python.org/3.13/whatsnew/3.13.html#logging
@bskjois
Copy link
Contributor Author

bskjois commented Sep 2, 2024

Hello @luckyh,
Thanks for the review and comment. I have fixed the style issues. Please take a look.

Thank you!

@luckyh luckyh merged commit db0b268 into avocado-framework:master Sep 3, 2024
50 checks passed
@luckyh
Copy link
Contributor

luckyh commented Sep 3, 2024

Thanks!

@bskjois bskjois deleted the warnTOwarning branch September 3, 2024 04:08
@bskjois bskjois restored the warnTOwarning branch September 3, 2024 04:08
@bskjois bskjois deleted the warnTOwarning branch September 3, 2024 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants